package com.scut.campus.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.scut.campus.entity.Type;
import com.scut.campus.mapper.TypeMapper;
import com.scut.campus.service.TypeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type> implements TypeService {
    @Override
    public List<Type> getType() {
        LambdaQueryWrapper<Type>lambdaQueryWrapper=new LambdaQueryWrapper<>();
        lambdaQueryWrapper.select(Type::getTypeId,Type::getName);
        return this.list(lambdaQueryWrapper);


    }
}
